-- GENERATED SPELL FOR [Myst Leecher] --


function spell0_17523(pUnit, Event) --@Leech Poison,n/a--
pUnit:FullCastSpellOnTarget(31288,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17523', 30000, 1)
end

function Sorts_17523(pUnit, Event)
local choix_sorts_17523 = math.random(0, 0)
if choix_sorts_17523 == 0 then
pUnit:RegisterEvent('spell0_17523', 1, 1)
end
end

function mob17523_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17523', math.random(1500, 3000), 1)
end

function mob17523_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17523_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17523_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17523, 1, 'mob17523_Action')
RegisterUnitEvent(17523, 2, 'mob17523_Leave')
RegisterUnitEvent(17523, 3, 'mob17523_Kill')
RegisterUnitEvent(17523, 4, 'mob17523_Die')
